import request from '@/utils/request'

// 查询对比记录列表
export function listCompare(query) {
  return request({
    url: '/system/compare/list',
    method: 'get',
    params: query
  })
}

// 查询对比记录详细
export function getCompare(id) {
  return request({
    url: '/system/compare/' + id,
    method: 'get'
  })
}

// 新增对比记录
export function addCompare(data) {
  return request({
    url: '/system/compare',
    method: 'post',
    data: data
  })
}

// 修改对比记录
export function updateCompare(data) {
  return request({
    url: '/system/compare',
    method: 'put',
    data: data
  })
}

// 删除对比记录
export function delCompare(id) {
  return request({
    url: '/system/compare/' + id,
    method: 'delete'
  })
}
